package com.ruoyi.system.service;

import com.ruoyi.system.domain.WaterWorkOrder;

import java.util.List;

/**
 * 工单Service接口
 *
 * @author ruoyi
 * @date 2025-09-16
 */
public interface IWaterWorkOrderService
{
    /**
     * 查询工单
     *
     * @param orderId 工单主键
     * @return 工单
     */
    public WaterWorkOrder selectWaterWorkOrderByOrderId(Long orderId);

    /**
     * 查询工单列表
     *
     * @param waterWorkOrder 工单
     * @return 工单集合
     */
    public List<WaterWorkOrder> selectWaterWorkOrderList(WaterWorkOrder waterWorkOrder);

    /**
     * 新增工单
     *
     * @param waterWorkOrder 工单
     * @return 结果
     */
    public int insertWaterWorkOrder(WaterWorkOrder waterWorkOrder);

    /**
     * 修改工单
     *
     * @param waterWorkOrder 工单
     * @return 结果
     */
    public int updateWaterWorkOrder(WaterWorkOrder waterWorkOrder);

    public int updateWaterWorkOrderNumber(WaterWorkOrder waterWorkOrder);

    /**
     * 批量删除工单
     *
     * @param orderIds 需要删除的工单主键集合
     * @return 结果
     */
    public int deleteWaterWorkOrderByOrderIds(Long[] orderIds);

    /**
     * 删除工单信息
     *
     * @param orderId 工单主键
     * @return 结果
     */
    public int deleteWaterWorkOrderByOrderId(Long orderId);

    public String getMaxOrderNumber();
}
